<?php
define('PWD',	 dirname(__FILE__));
include_once '_inc.php';

/***
 * _hookdoor/_datadoor.php?p=facebook&
 */

$cfg = require_once ROOT . '/configs/config.php';
$cfg['controllers_path'] = ROOT . '/_hookdoor/oo/';
ujn::runApplication($cfg);

function filterPost( $params ){
	foreach( $params as $k=>$v ){
		if(get_magic_quotes_gpc()==1){
	    	$v = stripcslashes( $v );
		}
		$v = str_replace('\'', '', $v);
		$v = str_replace('\"', '', $v);
		if( empty( $v ) ){
			unset( $params[$k] );continue;
		}
		else{
			$params[$k] = $v;
		}
	}
	unset( $params['p'], $params['form_id'] );

	return $params;
}